package com.zjff.myshop.mapper;

import com.zjff.myshop.entity.Address;

import java.util.List;

public interface AddressMapper {
    // 增
    int insert(Address address);

    // 删
    int deleteByPrimaryKey(Integer id);

    // 改
    int update(Address address);

    // 查
    Address selectByPrimaryKey(Integer id);

    Address selectDefaultByUserId(Integer userId);

    List<Address> selectListByUserId(Integer userId);
}